<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
import { wxConfig } from "@/utils";

export default {
  name: "App",
  mounted() {
    wx.checkJsApi({
      jsApiList: ["onMenuShareAppMessage", "onMenuShareTimeline"], // 需要检测的JS接口列表，所有JS接口列表见附录2,
      success: function(res) {
        console(res);
        //console.log(res);
        // 以键值对的形式返回，可用的api值true，不可用为false
        // 如：{"checkResult":{"chooseImage":true},"errMsg":"checkJsApi:ok"}
      }
    });
    // this.$$wxShare_global();
  },
  created() {
    let url = location.href;
    wxConfig.call(this, url);
  }
};
</script>

<style lang="less">
#app {
  font-family: "PingFangSC-Semibold", "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
}
@import "./style/reset.less";
@import "./style/common.less";
</style>
